/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-04-13
 * Time: 9:52
 */
public class Rectangle extends Square{
    private double length;
    private double width;

    public Rectangle(){};
    public Rectangle(double length, double width){
        this.length = length;
        this.width = width;
    }

    public double getPerimeter(){
        return (length + width) * 2;
    }
    public double getArea(){
        return length * width;
    }
}
